import request from '@/axios'
import type { ILovItemQuery } from '@/types'

export const getPageMakingInfo = (code: string) =>
	request({
		url: `/q-plant-basic/frame_center/common/page_config/${code}`,
		method: 'post'
	})

export const findPageMakingInfo = (code: string, mainEntityId: number) =>
	request({
		url: `/q-plant-masterdata/rel_crud/findData/${code}`,
		method: 'post',
		data: {
			mainEntityId
		}
	})

export const queryLovInfo = (listLov: ILovItemQuery[]) =>
	request({
		url: '/q-plant-basic/parameter/lov/getLovByParameter',
		method: 'post',
		data: {
			listLov
		}
	})